count number of enum values C#

102

count number of enum values C# -

int count = Enum.GetValues(typeof(EnumType)).Length;

Comments

Submit
0 Comments